﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace landlord2
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        public void Application_Startup(object sender, StartupEventArgs e)
        {
            ShutdownMode = ShutdownMode.OnExplicitShutdown;

            //new ControlTest().ShowDialog();

            TableWindow win = new TableWindow();
            if (win.ShowDialog() ?? false)
            {
                MainWindow main = new MainWindow();
                ShutdownMode = ShutdownMode.OnMainWindowClose;
                MainWindow = main;
                main.Show();
            }
            else Shutdown();
        }
    }
}
